<template>
  <!-- 公共头 -->
  <header id="header">
    <section class="container">
            <h1 id="logo">
              <a href="#/" title="杨不易呀支付平台">
<!--                          <img src="../assets/img/logo.jpg" width="100%" alt="杨不易呀">-->
              </a>
            </h1>
      <div>
        <ul class="nav">
          <router-link to="/" tag="li" active-class="current" exact>
            <a>购买课程</a>
          </router-link>
          <router-link to="/orders" tag="li" active-class="current">
            <a>我的订单</a>
          </router-link>
          <router-link to="/download" tag="li" active-class="current">
            <a>下载账单</a>
          </router-link>
        </ul>
      </div>
      <div class="clear"></div>
    </section>
  </header>
</template>

<style scoped>
@media screen and (max-width: 500px) {

  .nav, .nav li, .nav li a {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    flex-direction: row;
    padding: 0;
    margin-left: 10px;
  }
}
</style>